import java.util.ArrayList;
import java.util.Arrays;

public class TestDemo {
    public static void main(String[] args) {
        ArrayList<Object> arrayList=new ArrayList<>(10);
        arrayList.add(5);
        arrayList.add(6);
        arrayList.add(7);
        arrayList.add(8);
        System.out.println(arrayList);
        MyArrayList<String> myArrayList=new MyArrayList<>();
        myArrayList.add("abc");
        myArrayList.add("abcd");
        myArrayList.add("abcde");
        myArrayList.add("abcdef");
        myArrayList.add(0,"matin");
        myArrayList.add(3,"xaiojin");
        myArrayList.add(6,"longlong");
        System.out.println(myArrayList);
    }

}
